var o = require("../../utils/api.js"), a = getApp();

Page({
    data: {
        wait: "",
        already: "",
        proportion: ""
    },
    onLoad: function(t) {
        var i = this;
        wx.setNavigationBarColor({
            frontColor: wx.getStorageSync("basic").topcolor,
            backgroundColor: wx.getStorageSync("basic").topbg
        }), o.TeamCommissionCenter({
            openid: a.globalData.openid
        }).then(function(o) {
            0 == o.errno && i.setData({
                already: o.data.old_commission,
                wait: o.data.new_commission,
                proportion: 100 * o.data.user.m_commission / 100
            });
        });
    }
});